#include "key.h"
extern uint8_t count;

uint8_t key_scan()
{
	static uint8_t key = 0;
	if(count-key >0)
	{
		key = count;
		return KEY_LEFT;
	}
	else if(count-key <0)
	{
		key = count;
		return KEY_RIGHT;
	}
	else 
		return 0;
}